as-error Install npm install as-error import asError from 'as-error'; Usage asError(tabId) License MIT © Federico Brigante