Help creating Text Layer via BatchPlay. How to set "layerKind"?

In addition to creating layers :smiley:
https://www.adobe.io/photoshop/uxp/ps_reference/classes/document

const myEmptyLayer = await doc.createLayer()
const myLayer = await doc.createLayer({ name: "myLayer", opacity: 80, mode: "colorDodge" })

For a Text layer, it’s a tad more complex :wink:

Finally:
Note that layerKind is read-only: