Did that years ago when I switched back when Quantum came back; Firefox still has the good old venerable "import passwords from another browser" functionality. You just need to have your passwords sync'd to a local install of Chrome and Firefox can read them all and sync them with FF Sync (which does not force you to use Mozilla servers, btw; you may host your own server for max privacy).