Install the module from npm:
npm install mz-browser-extensions
Or using Yarn:
yarn add mz-browser-extensions
The import any function like getActiveTab:
import { getActiveTab } from 'mz-browser-extensions';
const activeTab = await getActiveTab();
console.log('activeTab', activeTab);