closeAsync

external fun closeAsync(): Promise<Void>(source)

The close() method of the AudioContext Interface closes the audio context, releasing any system audio resources that it uses.

MDN Reference