Closes the tab that meets the conditions.
closeTab = function(aTabIndex);
//Close the first tab closeTab(0);