Recover Missing Tile Textures

Hey everyone, somehow I removed the textures of the tiles in my project and now they are missing in the game. I still have the spritesheet of those textures but I wanna replace them with the old ones (it still shows that there are tilemaps in the grid because of the size of the tilemaps themselves, it just doesn’t render the tiles textures because they are missing). How can I replace them given that the tiles are transparent and there’s no way of identificating which tile which texture from the palette is?

Posting an image would help.

I think you need import those textures (slice them if you need too) and then put them back onto the tile palette.