Closeted or in the closet is a term when someone has told very few or no people about their sexual orientation or gender identity.
Someone may be closeted around some people and not others. For example, if someone has told their friends about their sexuality or gender but not their parents, they would be "out of the closet" around their friends but "closeted" to their parents.