Yes, closest returns only 1 NPC thats why it can be stored in just an NPC object. If you want to store multiple NPC's you can use a List for example but you have to call a different method because closest will only return 1.
Yo dude, just wanted to say thanks for sharing the API on Github. I downloaded it 3 days ago and it has since been removed, but the data it contains (equipment, config values, etc.) is invaluable for me. This is not a cry for help or to bash you, once again, just wanted to say thanks.
Sorry for reviving an old thread but thank you for bringing this to my attention, you have posted this on several threads and everytime you get either ignored or they use their own shitty method to determine states of something. This (script.getConfigs().get(281)) is truly the best and most trustworthy way. Thanks again