Custom state using Yanfly PassiveStates

I'm using yanflys_AutoPassiveStates and need a bit of syntax help as I'm very new with javascript.

The only things I need to know are what calls would check 1) If you're in battle 2) it's the first turn

The plugin itself constantly checks the conditional statements so it will keep loop checking on its own.
I don't need any help with creating the logic I only need to know the syntax, I'm really not even sure if
you can check the current turn?

If anyways know the js calls for checking if you are in combat and it's the first turn I would appreciate it.

Original thread: https://forums.rpgmakerweb.com/threads/custom-state-using-yanfly-passivestates.76565/