How to close tabs in vertical or horizontal split?

CTRL+W should do the job, but it doesn’t. Even when clicking with the right mouse button on the tab title the option “Close Tab” is greyed out.

To remove the split, you should choose Window > No Split instead.