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.