MIT license clearly says:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
So, place ALL copyright notices and one license text.
When You take code for example from 3 repositories with the following licenses:
- Repository 1: MIT license, copyright notice: (C) 2022 Author of repo 1
- Repository 2: MIT license, copyright notice: (C) 2022 Author of repo 2
- Repository 3: MIT license, copyright notice: (C) 2022 Author of repo 3
If you want to use MIT license for your project:
Just take all of these notices and place into LICENSE file like that:
(C) 2022 Author of repo 1
(C) 2022 Author of repo 2
(C) 2022 Author of repo 3
[Here your notice]
and here MIT license text.
If You want to use them in commercial product or product under another license, just make a NOTICE file with all copyright notices as above, but without yours. You can specify that You used code from those project.
Note: This is not legal advice! I'm not a lawyer.