Hey Larry, as per the official definition:
setScriptTimeout() sets the amount of time to wait for an asynchronous script to finish execution before throwing an error. If the timeout is negative, then the script will be allowed to run indefinitely.
This is mainly used with asynchronous scripts and can be written this way:
driver.manage().timeouts().setScriptTimeout(1, TimeUnit.SECONDS);