Add a collision layer to your tileset. Go to the tilemap, and under "physics layers", add a collision layer. Then you can click on the tileset -> paintbrush icon -> "collision layer 0" (the default name) and click the tiles to give them collision.