Best way to connect them is with the thin optical cable. You may need to turn that output on, the TV speakers off, and change the audio output type in the TV menu to get it working.
No reason to use HDMI. You lose an HDMI input without any gain in quality.