Code snippets for getting list of Action sets, actions and playing an action?

Does anyone know where there is soem example code for playing actions in UXP?

A couple of weeks back, I ran across some example code snippets for getting a list of action sets/actions and playing a Photoshop action in UXP which worked perfectly as is. I thought the snippets were at this link but I don’t see the code there so it must have been somewhere else (or maybe it was removed). The snippets were really helpful. I wish I could find them again. This link contains some information on actions but I really would like to find the example code that I had found 2 weeks ago. It’s a lot easier when then are example snippets to reference.

Nevermind, I found the code snippets on this page. “actionTree” was what I couldn’t figure out from the other page.

https://www.adobe.io/photoshop/uxp/guides/ps_basics/#actions-and-actionsets