If your soundbar has HDMI (ARC) then a single HDMI cable between the soundbar and the TV HDMI (ARC) input. You would need to turn ARC on in the TV and perhaps the soundbar menus.
If you don't have HDMI on the soundbar then the optical audio connection would be plan b.