getThingStatusInfo error in OH3 script

Why am I getting the following error when trying to run a script to get the status of a thing in Openhab 3?

[ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID ‘f362a052bb’ failed: ReferenceError: “getThingStatusInfo” is not defined in at line number 1

The rule is an example right out the OH Documentation site:

var thingStatusInfo = getThingStatusInfo("mqtt:topic:TasmotaColdStorage")

if ((thingStatusInfo !== null) && (thingStatusInfo.getStatus().toString() == "ONLINE")) {
    logInfo("ThingStatus", "The thing is online.")
} else {
    logError("ThingStatus", "The thing is offline or doesn't exist.")

You trying to run a rule as a script.
Run as rule

  type: application/vnd.openhab.dsl.rule


  type: application/javascript

Thank you for the quick response. That was it for sure.

Example of working status report here.