Close all tabs that are not already in the Tabs vector and close view panes
close_view.Rd
This function iterates through all tabs in RStudio, closing those that are not already listed in the Tabs vector. It also handles view panes by closing them if they do not have a corresponding document context.