"In(Object){...}" Function? Data types for Object Variables?

I can create an object and use dot syntax to create, or reference, variables inside of it.

But how can I specify the data types of these variables?

Also, is there some way I can enter the namespace of the object over a number of lines via {}s instead of using repetitive dot syntax?

Thanks in advance.