If you use PicBasic from Melabs, just look in the pdf manual. That is the only manual to trust.

And in there, TRIS is the direction command. 0 for Output, 1 for Input, just like the initials of the direction.

Ioannis