forgetAsync

The SerialPort.forget() method of the SerialPort interface returns a Promise that resolves when access to the serial port is revoked.

MDN Reference