I've been called plenty of things over the years, but today is a first for 'librarian.' Most folks use terms with far fewer letters
My point to the OP is: you need to comply with ALL codes, which means you need to address more than the NEC. Smoke alarms, egress lighting, emergency lighting, sealing firestops, etc., are all things we address that are not regulated by the NEC.
Learning the NEC is just a start.
To expand on the original question: fire safety requirements are addressed in the building code and -big surprise here- the fire code. In addition, the insurer may add his restrictions. This can lead to some working space and other issues.
The fire code -in particular, the sprinkler requirements- will 'trump' the NEC. For example, the sprinkler system is allowed in switchgear rooms, though no 'foreign systems' are allowed.