Here in Canada I'm not allowed for the next 28 days to socialize with anyone outside of work. This is more restrictive than what was imposed on most cities in China.
You can also legally take them into a complex and prevent them from leaving until they test negative, as has already been done for other infactions in the US.
The executive branch in the US also has the authority to rapidly execute such measures, and has done so historically.
If New York was isolated totally and completely self governed, you have a hope of achieving what NZ achieves.
Even a country as small as Australia is evidence of this thesis. They can get it under control in one state but a cluster pops up in another and it becomes a never ending game of whack a mole. If Australia was only Sydney, covid would be a distant memory. If Australia, population of 25 million, can't eliminate it, then trying to do so in a democracy with 300 million is a pipe dream.
This includes outside gathering.
The end result is that I am not allowed to engage in any in person social activity for the next 28 days, at all. The only context in which I will be able to see people outside of my dwelling will be going to work (sadly/luckily I work remote), and getting groceries.
So basically, I'm banned from socializing for the next 28 days at minimum, and so are most people in Québec.
As for your edit according to which this is only possible in large countries if they are totalitarian, the tactics China used are exactly the same that NZ has used, and are fully consititutional in the United States. Basically, telling people not to leave their homes for two weeks, using the Army to deliver food and supplies, and stopping travel between cities. These tactics have been implemented historically in the US in other epidemics and pandemics, so unless your claim is that the US is authoritarian, I don't follow.