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