import * as messages from '../../shared/messages'; export default interface TabsClient { openUrl(url: string, newTab: boolean): Promise; // eslint-disable-next-line semi } export class TabsClientImpl { async openUrl(url: string, newTab: boolean): Promise { await browser.runtime.sendMessage({ type: messages.OPEN_URL, url, newTab, }); } }