import * as messages from '../../shared/messages'; export default interface AddonIndicatorClient { setEnabled(enabled: boolean): Promise; } export class AddonIndicatorClientImpl implements AddonIndicatorClient { setEnabled(enabled: boolean): Promise { return browser.runtime.sendMessage({ type: messages.ADDON_ENABLED_RESPONSE, enabled, }); } }