You can close tabs and windows individually by clicking the "x" in the upper right corner of the tab or window, or the Close icon in the top navigation ribbon.
If you have multiple tabs open, you can close all tabs by selecting the "Close All Documents" command from the View > Window List menu.
You can also close all tabs except the currently selected tab by right-clicking on the tab and selecting "Close All But This".