PS Scripting 101

I’m trying to learn PS scripting and am having an issue with the basic use of the method:

.resize()

when trying to resize a layer. Is there documentation on it that Im not finding? What’s the proper usage of it? What are the variables it expects to pass?

It’s probably scale() you want

can i set the values to pixels rather than percentage?

O think you can get Layer.bounds and calculate the percentage based on the pixels you want