It's only the US which taxes worldwide income. It's not true for rest for the world.
https://taxsummaries.pwc.com/ireland/individual/taxes-on-per...
Still the common norm is that PIT is only levied on income earned in the country.
https://europa.eu/youreurope/citizens/work/taxes/income-taxe...
You mentioned Estonia in another comment - it might be the case that Estonia is a special case or has a scheme for attracting talent that doesn’t include worldwide tax
I see now that most countries do tax worldwide income, just that most of the time they have DTA agreements so you can offset tax paid in other countries against your tax bill.