I can't find out how to check if the extension used in Mozilla Firefox is a new tab extension.

It works for Google Chrome. I am using the following code in my Google Chrome extension while using webextension-polyfill to be cross-platform compatible👇

import browser from 'webextension-polyfill' const results = await browser.management.getAll() extensions = results.filter(extension => extension.permissions.includes('newTabPageOverride'), )

This does not work in Firefox as it does not have a special type like newTabPageOverride in permissions array

How can I find out which extension is a New Tab Extension in Mozilla Firefox?