>>495
const URL = "http://www.google.com/";;
const IN_NEW_TAB = true;
const IN_BACKGROUND = false;

executeInBackground((url, newtab, bg) => {
getActiveTab(tab => {
if (newtab)
browser.tabs.create({ url: url, active: !bg, index: tab.index+1 });
else
browser.tabs.update(tab.id, { url: url });
});
}, [ URL, IN_NEW_TAB, IN_BACKGROUND ]);