I\'m trying to close the Options page of the extension. I have a Cancel button and I\'m using this code:
chrome.tabs.getCurrent(null, function(tab) { chrom
Only this worked for me:
chrome.tabs.query({ active: true }, function(tabs) { chrome.tabs.remove(tabs[0].id); });