It warns a few seconds ahead of time. The tsunami appears a few minutes later. What are you gonna do, build a concrete tsunami wall in a couple of minutes?
I still think it’s interesting that they did have plenty of advanced warning, albeit underestimated. Most of the reporting I’ve seen made it sound like what you said, that it happened suddenly.