flush

open external fun flush()(source)

The flush() method of the FileSystemSyncAccessHandle interface persists any changes made to the file associated with the handle via the write() method to disk.

MDN Reference