https://developer.mozilla.org/en-US/docs/Web/API/TrustedScript/toString
TrustedScript: toString() method - Web APIs | MDN
The toString() method of the TrustedScript interface returns a string which may be safely inserted into an injection sink.
web apistostringmethodmdn