The rule about who may supervise is really a rule about the car
This is the most useful thing on this website, it is counter-intuitive, and most families in the five boroughs find it out later than they would like to.
A junior learner permit — the permit a sixteen or seventeen year old holds — may be used to drive in the five boroughs of New York City only between five in the morning and nine at night; only under the direct supervision of a parent, a guardian, a person in loco parentis, a driver education teacher or a driving school instructor, who must be at least twenty-one and hold a licence valid for the vehicle; and only in a vehicle fitted with dual controls. Between nine at night and five in the morning, a junior permit holder may not drive in the five boroughs at all.
Read that last condition again and then think about the family car. Almost no private car has dual controls. The requirement is not a comment on how steady the supervising adult is; it is a condition on the vehicle, and it applies inside the city however clean the parent's licence is and however long they have been driving.
The practical effect is that lawful practice for a teenager in Queens is narrower than most families assume, and that the fifty supervised hours the State expects before a road test are harder to accumulate here than they are upstate. That is not a sales argument. It is the reason parents find out late and are, quite reasonably, annoyed about it.
Two further things that get run together and should not be. The rules outside New York City are different rules. And a junior licence — the one somebody holds if they pass before their eighteenth birthday — is different again: it cannot be used to drive in the five boroughs under any circumstances, with one exception for seventeen-year-olds who have completed the State Education Department's driver education course and hold a full Class D licence.
Rules for drivers under eighteen have changed before and will change again. What is written above is a summary written to send you to the State's own pages, which are the ones that are current. Where ours and theirs disagree, theirs is right.