Use the Close method to close only the currently open tab.
Limitation: Your Internet Explorer (IE) browser must be configured to "Always close all tabs". To do this, open two or more tabs in IE. Then close IE. In the message box that pops up, select the "Always close all tabs" option.
Note: This method is not supported on Chrome. Use the Close method instead.
C# Syntax
void CloseAllTabs()