Depending on where you are staying, you can also use the Airport Express bus from Amsterdam. Very handy and quick if you are staying around Leidseplein or Museumplein. Bus 397. This bus does not depart from Centraal Station but at night it does run every hour from Amsterdam Centraal Station to Schiphol, under bus number N97. The operator is Connexxion, ticket can be bought online.
Amsterdam Airport Express (connexxion.nl)
I was often at the airport last year and, as some posters already mentioned, we never saw the scenes like in 2022. Flying to Copenhagen means you will only have to pass security, no passport control. So yes, without checked bags 2 - 2 1/2 hrs before departure should be sufficient