Timeout signature window if user does not reject or confirm

After initiating a request to send a transaction from etherjs
Metamask requests user to sign the transaction
Is their a way cancel or timout this window if the transaction is not signed ,say within 10 seconds