moved closeTabs function to background.js