Navigate to a certain tab and close that tab in OSX Terminal
In OSX Terminal, hold down the keys ⌘+Shift while arrowing right or left. This will allow you to switch between active tabs.

When on the tab you wish to close, as you noted, ⌘+w will close that tab.