Mclose
Bun

method

fs.WriteStream.close

callback?: (err?: null | ErrnoException) => void
): void;

Closes writeStream. Optionally accepts a callback that will be executed once the writeStreamis closed.