import { browser } from "webextension-polyfill-ts" ; import { ROUTES } from "popup/constants/routes" ; import { history } from "popup/constants/history" ; export const navigateTo = ( path , queryParams ? ) => { const pathname = queryParams ? `${ path }${ queryParams }` : path ; history . push ( { pathname } ) ; } ; export const openTab = ( url ) => browser . tabs . create ( { url } ) ;