import TabPresenter from '../presenters/TabPresenter'; export default class LinkUseCase { private tabPresenter: TabPresenter; constructor() { this.tabPresenter = new TabPresenter(); } openToTab(url: string, tabId: number): Promise { return this.tabPresenter.open(url, tabId); } openNewTab(url: string, openerId: number, background: boolean): Promise { return this.tabPresenter.create(url, { openerTabId: openerId, active: !background }); } }