const extensionIconClickListener = () => { chrome.tabs.create({ url: 'chrome-extension://' + chrome.runtime.id + '/popup/index.html' }); }; chrome.browserAction.onClicked.addListener(extensionIconClickListener);