timeout

fun timeout(milliseconds: UInt53): AbortSignal(source)

The AbortSignal.timeout() static method returns an AbortSignal that will automatically abort after a specified time.

MDN Reference