Detection of multiple stellar populations in extragalactic massive clusters with JWST