Copy selection

Hey again,

I found docs about the Selection object here https://www.adobe.io/photoshop/uxp/ps_reference/classes/selection/
But how do I retrieve the current selection using the api?
I found code for using batchplay using _property “selection” but this doesn’t give me the selection object I can copy from.

If you just want to copy it, how does this work?

{
   "_obj": "copyEvent",
   "_isCommand": true
}

I will also have to deal with this when my hands get to jsx refactoring to a UXP