FftruncateSync
Bun

function

fs.ftruncateSync

function ftruncateSync(
fd: number,
len?: number
): void;

Truncates the file descriptor. Returns undefined.

For detailed information, see the documentation of the asynchronous version of this API: ftruncate.