myArtLayer.kind in Photoshop DOM

to create a text layer set this property to 'text layer' on an empty art layer of type 'normal'

Property Type
LayerKind