Phonetic loan from Japanese パンツ (pantsu, from English 'pants', meaning 'underwear/panties' in Japanese). Spread through anime fandom (ACG culture) and is now standard internet slang in Chinese, especially in otaku contexts.
register
Internet/ACG slang only. Slightly playful or risqué — fine in casual online chat among fans, but not for formal writing or polite conversation.