document.getElementById("newtab").addEventListener('click', async function(e) { await browser.tabs.create({ url: "/main/main.html" }) })