function announce_close(){ console.log("closing all search tabs") chrome.tabs.query({}, function(tabs) { var closeable=[]; for (var i=0; i