Ukraine never really possessed nuclear arsenal. There were nuclear weapons on their territory but they lacked full operational capability to employ them, and didn't have the technical infrastructure to maintain them without Russian support. Those capabilities could have been built out in time but it would have required significant resources.