The TV has to have the ability to connect to devices via Bluetooth. For example, some Samsung TV's come with integrated Bluetooth adapters (since their remotes are connected via Bluetooth) that can connect to a device such as these JBuds Air Sport True Wireless In-Ear Headphones. If your TV does not have bluetooth built-in, you will not be able to connect these to the TV. You will have to perform an internet search for your TV and see if it comes with a Bluetooth adapter.
I've included an example of how to connect Bluetooth devices to a Samsung TV that can support them:
https://www.samsung.com/us/support/answer/ANS00079347/