truncate

suspend fun truncate(size: JsLong)(source)

MDN Reference