Leaders usually arrive in the seat because they're good at something. More often than not, the promotional path to any leadership position - whether managing a team or more later in your career - is rooted in subject matter expertise.
Since you were the best and you're now leading people, it's easy to be cocky. Tell them what to do because you know better than them.
The moment of truth for how you're perceived as a leader comes every time somebody on your team (or extended team) says something stupid.
Do you strike down their statement (cocky) or do you take the time to teach (confident)?
You'll get more done today with the cocky approach. You'll get much more done long-term with the confident approach.
It takes more time, but it's worth it. Sometimes they're stupid. You can't let them know you think that.