methodFileSink.endend(error?: Error): number | Promise<number>;Close the file descriptor. This also flushes the internal buffer.@param errorOptional error to associate with the close operation@returnsNumber of bytes written or a Promise resolving to the number of bytesReferenced typesinterface Errorcause?: unknownThe cause of the error.message: stringname: stringstack?: string