FfchmodSync
Bun

function

fs.fchmodSync

function fchmodSync(
fd: number,
mode: Mode
): void;

Sets the permissions on the file. Returns undefined.

See the POSIX fchmod(2) documentation for more detail.