Sounds like IKEA was warned in advance and police were there to try and prevent people from hiding, letting them know it was not welcome.
I also imagine IKEA has a loudspeaker system. If they announce "please, everyone, store hours are over, leave the IKEA" but you stay hidden, you're trespassing.
I also imagine IKEA has a loudspeaker system. If they announce "please, everyone, store hours are over, leave the IKEA" but you stay hidden, you're trespassing.