Yanfly's Absorption Barrier Help [SOLVED]

I was hoping to make a skill for the tank class that does 2 things:

1. Deals damage to the target with a damage formula

2. Gives the user a barrier for three turns. the barrier points are based of the user's mhp

I have tried using many different codes, including the <Custom User Barrier 3 Turns> tag, and mostly ended with a crash. Any help would be appreciated.

For reference, the error I get is require(...).Window.get(...).isDevToolsOpen is not a function
The title says [SOLVED]. Is it solved? Maybe you could share your solution so that others with a similar problem can see it; other people have asked about this same error today.
It would be great, it happens to me with the Quest journal script
Happened to me today and don't know how to fix it 🙁

Original thread: https://forums.rpgmakerweb.com/threads/yanflys-absorption-barrier-help-solved.91688/