Preparation - NoSubstitute/userDelegationWebApp GitHub Wiki
There are a few steps before you can use the library in your script.
If you copy my template script you can skip some steps, but read through them anyway just to verify that your script looks ok.
If you don't copy my template you will have to create a script with the many files and manually copy all the scripts content into the Apps Script editor before going on to step 1.
Copying the template is much less work. I promise.