The first use or no first use of nuclear weapons does not in and of itself violate, as far as I'm aware, anything in the UN charter. I mean, the Cold War.... That policy has been in place since the early fifties.
On April 25th, 2023. See this statement in context.