Ntruncate
Bun

namespace

fs.truncate

function truncate(
path: PathLike,
callback: NoParamCallback
): void;

Asynchronous truncate(2) - Truncate a file to a specified length.

@param path

A path to a file. If a URL is provided, it must use the file: protocol.

namespace truncate