import type DefaultOptions from '../types/DefaultOptions'; function showNotification(options?: DefaultOptions): Cypress.Chainable { if (options?.log ?? true) { Cypress.log({ displayName: 'MetaMask', message: 'Show MetaMask notification window', }); } return cy.task('showNotification', undefined, { ...options, log: false, }); } Cypress.Commands.add('showNotification', { prevSubject: false }, showNotification);