I believe you need to convert the cookies to the format that BAS understands, and then import them into BAS using a standard method.
Take a look:
https://chromedevtools.github.io/devtools-protocol/tot/Network/#type-Cookie
Hi
Ive posted an example project here,if it is called from the global area it is ok i think otherwise does not work
https://pastebin.com/raw/tBVS5gfV
How to call bas commands etc from custom code
example bas custom command _call(BasFunction,null)!
this will work, but if we try within function calls etc it will error
thanks for any help on this