functionfs.promises.truncatefunction truncate(path: PathLike,len?: number): Promise<void>;Truncates (shortens or extends the length) of the content at path to len bytes.@returnsFulfills with undefined upon success.Referenced typestype PathLike = string | Buffer | URLValid types for path values in "fs".