TV has optical audio output.
Soundbar has optical audio input.
Connect them with a toslink optical cable.
Check the TV manual on how to turn on and configure the output. You may have to turn the TV speakers off and change the audio output type in TV menu.